package zoro.shopping_list;

import java.util.ArrayList;

public class ShoplistModel {
 public static ArrayList<Shoplist> shoplist;
 public static final String[] LABEL = new String[] {"A","B","C","D"};
 public static final String[] INFO  = new String[] {"a","b","c","d"};
 
 public static final int[] IMG_ICON = new int[]{R.drawable.icon,
	 											R.drawable.icon,
	 											R.drawable.icon,
	 											R.drawable.icon,
	 											R.drawable.icon,
 };
 
 public void initShopList(){
	 shoplist = new ArrayList<Shoplist>();
	 for(int i =0; i < LABEL.length; i++){
		 Shoplist sl = new Shoplist();
		 sl.label = LABEL[i];
		 sl.info  = INFO[i];
		 sl.imgIcon = IMG_ICON[i];
		 shoplist.add(sl);
		 
	 }
 }
 
 public static ArrayList<Shoplist> getShopList(){
	 if(shoplist == null){
		 ShoplistModel model = new ShoplistModel();
		 model.initShopList();
	 }
	return shoplist;
 }
 
 
}
